home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group00a.txt
/
000138_icon-group-sender _Thu Jun 1 13:46:33 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2001-01-03
|
2KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id NAA08842
for icon-group-addresses; Thu, 1 Jun 2000 13:46:26 -0700 (MST)
Message-Id: <200006012046.NAA08842@baskerville.CS.Arizona.EDU>
From: "F.G. van DORP" <F.G.van.Dorp@digimedia.nl>
X-Newsgroups: comp.lang.icon
Subject: Re: CODE() and @/2
X-Newsreader: Forte Agent 1.7/32.534
Date: Thu, 01 Jun 2000 18:56:01 GMT
X-Complaints-To: abuse@chello.nl
X-Trace: flipper 959885761 212.187.67.243 (Thu, 01 Jun 2000 20:56:01 MET DST)
To: icon-group@optima.CS.Arizona.EDU
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
On 30 May 2000 20:09:35 -0400, Steve Wampler <swampler@noao.edu> wrote:
>"F.G. van DORP" wrote:
>
>> I tried
>>
>> nextLabel := create "L" || (1 to 10) || ("foo" @ &source)
>
>What did you intend the above to do?
....to find out if binary @ behaves like a regular RETURN
>
> nextLabel := create "L" || (1 to 10) || "foo"
>
>> write(@nextlabel)
>
>This must have been write(@nextLabel), right?
Yes. I can't copy&paste because ICON is on another machine, which
in fact is entirely "dedicated" to ICON because of all those illegal
co-ex operations ...just kidding.
Under my ICON (Windows Icon v.9.3.1, Wi v.1.01) above example
prints "L1foo" immediately followed by an illegal op. error.
I f you change it to, let's say
procedure main
nextLabel := create (("L" || (1 to 10) || "foo") @ &source)
write("1 ",@nextLabel)
write("2 ",@nextLabel)
write("3 ",@nextLabel)
write("4 ",@nextLabel)
write("5 ",@nextLabel)
end
it prints
"1 L1foo"
"2"
"3 L2foo"
"4"
illegal op error
This behavior doesn't change if you replace ("L" || (1 to 10) || "foo")
with any other generator, nor &source with &main in this particular example.